package com.code.time1120;

/**
 * @author Administrator
 * 懒汉模式
 */
public class Singleton2_2 {
	private static Singleton2_2 singleton;
	public Singleton2_2() {

	}
	public static Singleton2_2 getInstance(){
		if(singleton == null) singleton = new Singleton2_2();
		return singleton;
	}
}
